{extend name="_container/table"}

{block name="left"}
{if check_access('add')}
<span class="layui-btn iframe" data-href="{:url('add')}" data-title="添加权限" data-width="90%" data-height="90%">添加权限</span>
{/if}
{/block}

{block name="right"}

{/block}

{block name="table_header"}
<tr>
  <th>id</th>
  <th>权限名称</th>
  <th>创建时间</th>
  <th>修改时间</th>
  <th>操作</th>
</tr>
{/block}

{block name="table_body"}
<tr>
  <td>{$v.id}</td>
  <td>{$v.name}</td>
  <td>{$v.create_time}</td>
  <td>{$v.update_time}</td>
  <td>
    {if check_access('update')}
    <span class="layui-btn layui-btn-sm iframe" data-href="{:url('update', ['id'=>$v.id])}" data-title="编辑权限" data-height="90%" data-width="90%">编辑</span>
    {/if}
    {if check_access('delete')}
    <span class="layui-btn layui-btn-sm layui-btn-danger ajax_del"  data-href="{:url('delete', ['id'=>$v.id])}">删除</span>
    {/if}
  </td>
</tr>
{/block}

{block name="table_footer"}

{/block}

{block name="js"}

{/block}

{/extend}